
	
	public class Car {
		
		String make;
		String model;
		int cylinders;
		boolean inbuiltGPS;
		boolean inbuiltDVD;
		
		
		void cardetails(){
			System.out.println("The car make is " + make);
			System.out.println("The car model is " + model);
			System.out.println("The car engine has cylinders " + cylinders);
			
		}
		
		void carnavigation(){
			
		    if(inbuiltGPS){
		    	inbuiltGPS = true;
		    	System.out.println("The car has inbuilt GPS");
		    }else
		    {
		    	System.out.println("This car has no inbuilt GPS");
		    }

		}
		 void cylindersinengine(){
			 
			 switch (cylinders) {
			case 1:
				cylinders = 4;
				break;
				
			case 2:
				cylinders = 6;
				break;
			
			case 3:
				cylinders = 8;
				break;

			default:
				
				break;
			}
			 System.out.println("Engine has cylinders " +  cylinders);
		 }
		 
		 void caraccessories(){
			 if(inbuiltGPS == true && inbuiltDVD ==true)
				 System.out.println("This car has both inbuilt navigation and DVD system");
			 else {
			 System.out.println("This car can be upgraded to get complete accessory package");
		 }
		 }
		 }




